package com.taijihuabao.modules.model.approval.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author xiaob
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@ApiModel("请假审批实体类")
public class LeaveApprovalVO {

    /**
     * 审批主键
     */
    @ApiModelProperty(value = "审批主键")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;
    /**
     * 审批类型
     */
    @ApiModelProperty(value = "审批类型")
    private String approvalType;
    /**
     * 审批编码
     */
    @ApiModelProperty(value = "审批编码")
    private String approvalCode;
    /**
     * '申请内容'
     */
    @ApiModelProperty(value = "申请内容")
    private String applyContent;
    /**
     * 申请备注
     */
    @ApiModelProperty(value = "'申请备注'")
    private String applyRemarks;
    /**
     * 申请人id
     */
    @ApiModelProperty(value = "申请人id")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long applyUserId;
    /**
     * 申请部门
     */
    @ApiModelProperty(value = "申请部门")
    private String applyDeptCode;
    /**
     * 审批人id
     */
    @ApiModelProperty(value = "审批人id")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long approvalUserId;
    /**
     * 审批内容或意见
     */
    @ApiModelProperty(value = "审批意见")
    private String approvalOpinion;
    /**
     * 审批状态
     */
    @ApiModelProperty(value = "审批状态（ing审批中 pass审批通过 reject审批未通过）")
    private String  approvalState;
}
